package com.plum.admin.modules.youeorder.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.plum.admin.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 专车订单状态流转
 * </p>
 *
 * @author 子丶沫
 * @since 2021-08-17
 */
@Data
@Accessors(chain = true)
@TableName("sn_order_change")
@ApiModel(value="SnOrderChange对象", description="专车订单状态流转")
public class SnOrderChange implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;

    @ApiModelProperty(value = "订单ID")
    @TableField("orderId")
    private Integer orderid;

    @ApiModelProperty(value = "订单业务状态  20-改派 改价-30 退款-40")
    @TableField("order_status")
    private Integer orderStatus;

    @ApiModelProperty(value = "业务状态为30改价/40退款时，关联记录id")
    @TableField("record_id")
    private Integer recordId;

    @ApiModelProperty(value = "原司机Id")
    @TableField("oriDriverId")
    private Integer oridriverid;

    @ApiModelProperty(value = "新司机Id")
    @TableField("newDriverId")
    private Integer newdriverid;

    @ApiModelProperty(value = "改派原因")
    @TableField("change_reason")
    private String changeReason;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_date")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "备注信息")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "逻辑删除标记（0：显示；1：隐藏）")
    @TableField("del_flag")
    private String delFlag;

    @ApiModelProperty(value = "派单类型 0-自动派单 1-扫码下单 2-指派 3-手动改派 4-自动改派 ")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "原订单状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "新订单id")
    @TableField("new_order_id")
    private Integer newOrderId;


}
